package com.bskj.common.enums;

public enum TopupActivityStatusEnum {
	IN_ACTIVE(0, "未激活"), ACTIVE(1, "已激活");

	private int key;
	private String value;

	private TopupActivityStatusEnum(int key, String value) {
		this.key = key;
		this.value = value;
	}

	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public static TopupActivityStatusEnum get(int key) {
		for (TopupActivityStatusEnum typeEnum : TopupActivityStatusEnum.values()) {
			if (typeEnum.getKey() == key) {
				return typeEnum;
			}
		}
		return null;
	}
}
